package cn.wzy.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @author nihaowzy
 * @date 2020/12/24 11:09
 * 客户实体类
 */
public class Customer {
    /**
     * 客户id
     */
    private Integer id;
    /**
     * 客户姓名
     */
    private String name;
    /**
     * 客户电话
     */
    private String phone;
    /**
     * 客户性别
     */
    private Integer sex;
    /**
     * 客户公司
     */
    private String company;
    /**
     * 客户是否有效
     */
    private Integer deleted;
    /**
     * 客户对应的业务员
     */
    private Integer userId;
    /**
     * 客户创建时间
     */
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 客服更新时间
     */
    @JSONField(format = "yyyy-MM-dd")
    private Date updateTime;
    /**
     * 客户删除时间
     */
    @JSONField(format = "yyyy-MM-dd")
    private Date deleteTime;

    public Customer() {
    }

    public Customer(Integer id, String name, String phone, Integer sex, String company, Integer deleted, Integer userId, Date createTime, Date updateTime, Date deleteTime) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.sex = sex;
        this.company = company;
        this.deleted = deleted;
        this.userId = userId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.deleteTime = deleteTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", sex=" + sex +
                ", company='" + company + '\'' +
                ", deleted=" + deleted +
                ", userId=" + userId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", deleteTime=" + deleteTime +
                '}';
    }
}
